Telegram Group & Telegram Channel
Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес



tg-me.com/pythonturboru/417
Create:
Last Update:

Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/417

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

Python Turbo Уютное сообщество Python разработчиков from br


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA